﻿using Shop.Model.DB;
using Shop.Model.SkuSpec;
using WeDonekRpc.SqlSugar;

namespace Shop.Repository.lmpl
{
    internal class GoodsSkuSpecRepository : ShopBaseRepository<DBGoodsSkuSpec, long>, IGoodsSkuSpecRepository
    {
        public GoodsSkuSpecRepository (ISqlClientFactory factory) : base(factory)
        {
        }
        public SkuSpecDto[] Gets (long goodsId)
        {
            return base.Gets<SkuSpecDto>(a => a.GoodsId == goodsId);
        }
    }
}
